#ifndef SINGLE_DOUBLE_PARAM_H
#define SINGLE_DOUBLE_PARAM_H

#include "Param.h"

class SingleDoubleParam: public Param {
protected:
	double value;

	double set( double val );
	double get() throw (NotReady);

public:
	SingleDoubleParam();
	SingleDoubleParam( const char *name );
	SingleDoubleParam( SingleDoubleParam &src );

	void read( Input &input );

	//double operator = (SingleDoubleParam &val);
	double operator = (double val);
	double operator += (double val) throw (NotReady);
	double operator -= (double val) throw (NotReady);
	double operator *= (double val) throw (NotReady);
	double operator /= (double val) throw (NotReady);
	double operator ++ () throw (NotReady);
	double operator ++ (int) throw (NotReady);
	double operator -- () throw (NotReady);
	double operator -- (int) throw (NotReady);
	operator double () throw (NotReady);
};

#endif